package com.xqls.service;

import java.util.List;
import java.util.Map;

import com.xqls.dal.model.UserRoleKey;

public interface UserRoleKeyService {
    boolean insertDate(UserRoleKey useRoleKey);
    
    boolean updateData(UserRoleKey userRoleKey,String oldRoleId);
    
    boolean deleteData(UserRoleKey userRoleKey);
    
    boolean deleteByList(List<String> userIdList,List<String> roleIdList);
    
    UserRoleKey getLastRecord();
    
    List<UserRoleKey> getListByUserId(String userId);
    
    List<UserRoleKey> getListByRoleId(String roleId);
    
    List<UserRoleKey> getListByKey(String userId,String roleId);
    
    List<Map<String,Object>> getListByMap(Map<String,Object> map);
}
